#!/usr/bin/env bash

set -e
set -o pipefail

lein test

echo "Building ClojureScript unit tests..."
clojure -A:test -m cljs.main -co '{:target :nodejs :optimizations :none :output-to "test.js"}' -c test-runner

echo "Running ClojureScript unit tests..."
node test.js

rm test.js
